<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


<p:dialog id="dialogCadastroSt" modal="false" width="20%"
	header="Atendimento" draggable="true" resizable="false"
	appendTo="@(body)" widgetVar="dialogStatus">
	<h:form id="frmDialogStatus">

		<h:panelGrid columns="2">

			<p:outputLabel value="Status:"></p:outputLabel>
			<p:selectOneMenu
				value="#{marcacaoConsultaMB.marcacaoConsultaSelecionado.agendamento.statusAgendamento}"
				required="true" id="status">
				<f:selectItems var="status"
					value="#{marcacaoConsultaMB.listaStatus}"
					itemLabel="#{status.descricao}" itemValue="#{status}"></f:selectItems>
			</p:selectOneMenu>


		</h:panelGrid>
		<h:panelGrid columns="2" style="border:0px">
			<p:commandButton value="Confirma"
				actionListener="#{marcacaoConsultaMB.salvar}"
				update=":frmTab:tabela"
				oncomplete="validaDialog(args,'dialogStatus','frmDialogStatus:dialogCadastroSt')" />


			<p:commandButton value="Cancela" onclick="dialogStatus.hide()" />

		</h:panelGrid>

	</h:form>
</p:dialog>

</html>